<?php

require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();
$action = 'root';
if (!$zbp->CheckRights($action)) {
    $zbp->ShowError(6);
    die();
}
if (!$zbp->CheckPlugin('WordPaster')) {
    $zbp->ShowError(48);
    die();
}
WordPaster_init();
$blogtitle = 'Word一键粘贴控件';

if (function_exists('CheckIsRefererValid')) {
    CheckIsRefererValid();
}
foreach ($WordPaster->config_array as $name => &$value) {
    $config_name = $name;
    $value = GetVars('WORDPASTER_' . $config_name, 'POST');

    $zbp->Config('WordPaster')->$config_name = $value;
    echo $config_name . '<br/>' . $value;
}

$zbp->SaveConfig('WordPaster');
$zbp->SetHint('good');
Redirect('main.php');
